<?php $this->load->view('header.php');?>

<div class="page-container">
	<?php $this->load->view('sidebar');?>
	<!-- BEGIN CONTENT -->
	<div class="page-content-wrapper">
		<div class="page-content">
			<?php $this->load->view('user/_sub_nav');?>
			<div class="row">
				<div class="col-md-12">
					<div class="table-toolbar">
				
					</div>
					<table class="table table-hover" id="user_action_logs_table">
						<thead>
							<tr>
								<th>#ID</th>
								<th>管理员</th>
								<th>模块</th>
								<th>动作</th>
								<th>操作内容</th>
								<th>操作时间</th>
							</tr>
						</thead>
						<tbody>
							<?php foreach ($logs as $key => $log):?>
								<tr>
									<td><?php echo $log['id'];?></td>
									<td><?php echo $log['username'];?></td>
									<td><?php echo $log['module'];?></td>
									<td><?php echo $log['action'];?></td>
									<td><?php echo json_encode(unserialize($log['content']));?></td>
									<td><?php echo date('Y-m-d H:i:s',$log['create_time']);?></td>
								</tr>
							<?php endforeach;?>		
						</tbody>
					</table>

				</div>
			</div>
		</div>
	</div>
</div>

<?php $this->load->view('footer');?>

<script type="text/javascript" src="assets/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
<!-- Jquery Form -->
<script type="text/javascript" src="assets/plugins/jquery.form.js"></script>
<!-- Jquery Form -->

<script>
jQuery(document).ready(function() {    
   App.init(); // initlayout and core plugins
   //$('#user_action_logs_table').datatable();
});
</script>

</body>
<!-- END BODY -->
</html>

